home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / gnu / gptx-0_2.lha / gptx-0.2 / version.c < prev   
C/C++ Source or Header  |  1991-10-10  |  1KB  |  50 lines

  1. /* Permuted index, with keywords in their context.
  2.    Copyright (C) 1990 Free Software Foundation, Inc.
  3.    Francois Pinard <pinard@iro.umontreal.ca>, 1990.
  4. */
  5.  
  6. #include <stdio.h>
  7.  
  8. char *version_string = "\nGNU ptx version 0.2\n";
  9. char *copyright_line = "Copyright (C) 1991 Free Software Foundation, Inc.";
  10.  
  11.  
  12. /* Prints the package name and version, and the short Copyright.  */
  13.  
  14. void
  15. #ifndef __STDC__
  16. print_version ()
  17. #else
  18. print_version (void)
  19. #endif
  20. {
  21.   fprintf (stderr, "%s%s\n", version_string, copyright_line);
  22. }
  23.  
  24.  
  25. /* Prints a more detailed Copyright.  */
  26.  
  27. void
  28. #ifndef __STDC__
  29. print_copyright ()
  30. #else
  31. print_copyright (void)
  32. #endif
  33. {
  34.   fprintf (stderr, "\
  35. This program is free software; you can redistribute it and/or modify\n\
  36. it under the terms of the GNU General Public License as published by\n\
  37. the Free Software Foundation; either version 1, or (at your option)\n\
  38. any later version.\n\
  39. \n\
  40. This program is distributed in the hope that it will be useful,\n\
  41. but WITHOUT ANY WARRANTY; without even the implied warranty of\n\
  42. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n\
  43. GNU General Public License for more details.\n\
  44. \n\
  45. You should have received a copy of the GNU General Public License\n\
  46. along with this program; if not, write to the Free Software\n\
  47. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.\n\
  48. \n");
  49. }
  50.